package io.github.wanggit.website.demos.zipkin_service_1.service.impl;

import io.github.wanggit.antrpc.commons.annotations.RpcAutowired;
import io.github.wanggit.website.demos.zipkin_api_1.HelloService;
import io.github.wanggit.website.demos.zipkin_service_1.service.DemoService;
import io.github.wanggit.website.demos.zipkin_service_1.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class DemoServiceImpl implements DemoService {

    @RpcAutowired
    private HelloService helloService;

    @Autowired
    private StudentService studentService;

    @Override
    public String start(String name) {
        studentService.listStudents();
        return helloService.sayHello(name);
    }
}
